@import "./filters.scss";
@import "./list.scss";
@import "./product-view.scss";

.product-flag {
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: color("gray");
    background: color("white");
    border: 1px solid color("gray");
    border-radius: 3px;
}

.product-flag--new {
    color: theme-color("primary");
    border: 1px solid theme-color("primary");
}

.product-flag--hot {
    color: color("red");
    border: 1px solid color("red");
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.product-price--old {
    color: color("gray");
    text-decoration: line-through;
}

.product-price--special {
    color: color("red");
}

.product-prices {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.product-price {
    font-weight: 500;
}

.product-price--old {
    font-size: 14px;
    line-height: 20px;
    color: color("gray");
    text-decoration: line-through;
}

.product-price--special {
    color: color("red");
    margin-left: 6px;
}

.product-item__img,
.product-img {
    display: block;
    margin: 0 auto;
    margin-bottom: 5px;
    
    img {
        display: inline-block;
        max-width: 100%;
        min-height: 120px;
        border: 0;
    }
}

.product-item__brand,
.product-brand {
    font-weight: 500;
    text-transform: uppercase;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item__name,
.product-name {
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 6px;
    line-height: 18px;
}

.product-feature {
    font-weight: 500;
    span {
        color: color("gray");
    }
    padding-bottom: 5px;
}

.product-item__flag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.products-container {
    display: flex;
    flex-flow: row nowrap;
    .products-container__aside {
        position: relative;
        flex: 0 0 240px;
    }
    .product-list {
        flex: 1;
    }
}